package com.yunsc.order.sevice;

import com.yunsc.order.dto.CheckoutOrderDTO;
import com.yunsc.order.entity.YunscOrderEntity;
import com.yunsc.order.vo.CheckOrderVO;
import com.yunsc.order.vo.CheckoutOrderVO;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-05-12 14:03
 */
public interface CheckoutOrderService {

    CheckoutOrderVO checkoutOrder(CheckoutOrderDTO params, Integer userId, Integer storeId);

    /**
     * 提交订单
     *
     * @param params   订单参数
     * @param userId   用户id
     * @param storeId
     * @param platform
     * @return 订单id
     */
    Integer checkoutOrderSubmit(CheckoutOrderDTO params, Integer userId, Integer storeId, String platform);

    YunscOrderEntity createOrder(Integer userId, CheckoutOrderDTO param, CheckOrderVO order, Integer storeId, String platform);


}
